//
//  TestViewController.m
//
//  Copyright iOSDeveloperTips.com All rights reserved.
//

#import "TestViewController.h"
#import "NSString+MD5.h"
#import "NSData+MD5.h"
#import <CommonCrypto/CommonDigest.h>

@implementation TestViewController

- (void)loadView 
{
  [self setView:[[[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease]];
  
  NSString *str = @"Convert this text to MD5";
  NSLog(@"%@", [str MD5]);
 
  NSString *path = [[NSBundle mainBundle] pathForResource:@"TestFile" ofType:@"txt"];  
	NSData *nsData = [NSData dataWithContentsOfFile:path];  
	if (nsData) 
	  NSLog(@"%@", [nsData MD5]);

}

- (void)dealloc 
{
	[super dealloc];
}

@end

